package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 字典子项表 sys_dict_item
 * 
 * @author ruoyi
 */
public class SysDictItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 子项编码 */
    private Long itemId;

    /** 字典类型（关联主表sys_dict_data的dict_type） */
    private String dictType;

    /** 子项排序 */
    private Integer itemSort;

    /** 子项标签 */
    private String itemLabel;

    /** 子项值 */
    private String itemValue;

    /** 父项值（用于多级子项） */
    private String parentValue;

    /** 状态（0正常 1停用） */
    private String status;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 备注 */
    private String remark;

    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setDictType(String dictType) 
    {
        this.dictType = dictType;
    }

    public String getDictType() 
    {
        return dictType;
    }
    public void setItemSort(Integer itemSort) 
    {
        this.itemSort = itemSort;
    }

    public Integer getItemSort() 
    {
        return itemSort;
    }
    public void setItemLabel(String itemLabel) 
    {
        this.itemLabel = itemLabel;
    }

    public String getItemLabel() 
    {
        return itemLabel;
    }
    public void setItemValue(String itemValue) 
    {
        this.itemValue = itemValue;
    }

    public String getItemValue() 
    {
        return itemValue;
    }
    public void setParentValue(String parentValue) 
    {
        this.parentValue = parentValue;
    }

    public String getParentValue() 
    {
        return parentValue;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public void setCreateBy(String createBy) 
    {
        this.createBy = createBy;
    }

    @Override
    public String getCreateBy() 
    {
        return createBy;
    }

    @Override
    public void setCreateTime(Date createTime) 
    {
        this.createTime = createTime;
    }

    @Override
    public Date getCreateTime() 
    {
        return createTime;
    }

    @Override
    public void setUpdateBy(String updateBy) 
    {
        this.updateBy = updateBy;
    }

    @Override
    public String getUpdateBy() 
    {
        return updateBy;
    }

    @Override
    public void setUpdateTime(Date updateTime) 
    {
        this.updateTime = updateTime;
    }

    @Override
    public Date getUpdateTime() 
    {
        return updateTime;
    }

    @Override
    public void setRemark(String remark) 
    {
        this.remark = remark;
    }

    @Override
    public String getRemark() 
    {
        return remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("itemId", getItemId())
            .append("dictType", getDictType())
            .append("itemSort", getItemSort())
            .append("itemLabel", getItemLabel())
            .append("itemValue", getItemValue())
            .append("parentValue", getParentValue())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
    